package chapter6;

public class AccessStaticInnerClass {
    static class StaticInnerClass {
        private static int prop1 = 5;
        private int prop2 = 9;
    }

    public void accessInnerProp() {
        //访问内部类的静态成员
        System.out.println(StaticInnerClass.prop1);
        //访问内部类的非静态成员
        System.out.println(new StaticInnerClass().prop2);
    }

    public static void main(String[] args) {
        AccessStaticInnerClass asic = new AccessStaticInnerClass();
        asic.accessInnerProp();
    }
}
